<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Expert extends Model
{
    use HasFactory;

    protected $fillable=['name','ks','zc','hos','image','intro'];

    public function video(){
        return $this->belongsToMany(Video::class,'video_experts','expert_id','video_id');
    }
}
